<div class="header_index">
    <span class='title_page_index_user'>Usuários Cadastrados</span>
    <span class="new"><%= link_to 'Novo', new_user_path %></span>
</div>
<div class="tabela-index-users">
    <tbody>
    <table>
        <th>LOGIN</th>
        <th>EMAIL</th>
        <th>PERFIL</th>
        <th>OPÇÕES</th>
        <% @users.each do |u| %>
            <tr class="<%= cycle("even", "odd") -%>">
                <td><%= u.login %></td>
                <td><%= u.email %></td>
                <td><%= u.tipouser.perfil %></td>
                <td>
                    <%= link_to 'Mostrar', user_path(u) %> |
                    <%= link_to 'Editar', edit_user_path(u) %> |
                    <%= link_to 'Apagar', user_path(u), :confirm => 'Tem certeza?', :method => :delete %>
                </td>
            </tr>
        <% end %>
    </table>
    </tbody>
</div>
